package com.xinzhi.service.Impl;

import com.xinzhi.mapper.UserMapper;
import com.xinzhi.model.User;
import com.xinzhi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> queryUsersByIds(List<Integer> ids) {
        return userMapper.queryUsersByIds(ids);
    }

    @Override
    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }




    @Override
    public List<User> queryUserByCondition(User user) {
        return userMapper.queryUserByCondition(user);
    }
}
